package com.amat0urheu.service.impl;


import com.amat0urheu.dao.SystemMapper;

import com.amat0urheu.pojo.ReturnRes;
import com.amat0urheu.service.SystemService;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

@Service
public class SystemServiceImpl implements SystemService {
    @Autowired
    SystemMapper systemMapper;
    @Override
    public ReturnRes doSystemInformation(String information) {

        systemMapper.deleteSystemInformation();
        systemMapper.updateSystemInformation(information);

        return new ReturnRes(true, "使用说明更新成功");
    }

    @Override
    public ReturnRes getInstruction() {
        String information=systemMapper.getInstruction();

        return new ReturnRes(true, information, "查询成功");
    }
}
